<?php
namespace App\Model;

use PhalApi\Model\NotORMModel as NotORM;

class VERSION extends NotORM
{

    protected function getTableName($id)
    {
        return 'version';
    }

    public function getVersion($app_id)
    {
        return $this->getORM()
            // ->select('id')
            ->where('app_id', $app_id)
            ->fetchRow();
    }
}